package com.example.googlemapdrawroutelast;

import android.os.Parcel;
import android.os.Parcelable;

public class RouteInfo implements Parcelable {

	int id_route;
	String name_route;
	String description;
	String coordinates;
	String characteristicPoints;
	int id_user;

	public RouteInfo()
	{
		
	}
	
	public RouteInfo(int id_route, String name, String description, String coordinates, String characteristicPoints, int id_user) {
		super();
		this.id_route = id_route;
		this.name_route = name;
		this.description = description;
		this.coordinates = coordinates;
		this.characteristicPoints = characteristicPoints;
		this.id_user = id_user;
	}

	public RouteInfo(Parcel in) {
		this.id_route = in.readInt();
		this.name_route = in.readString();
		this.description = in.readString();
		this.coordinates = in.readString();
		this.characteristicPoints = in.readString();
		this.id_user = in.readInt();
	}

	public String getName() {
		return name_route;
	}

	public void setName(String name) {
		this.name_route = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public int getId() {
		return id_route;
	}

	public void setId(int id) {
		this.id_route = id;
	}
	
	public String getCoordinates() {
		return coordinates;
	}

	public void setCoordinates(String coordinates) {
		this.coordinates = coordinates;
	}
	
	public String getCharacteristicPoints() {
		return characteristicPoints;
	}

	public void setCharacteristicPoints(String characteristicPoints) {
		this.characteristicPoints = characteristicPoints;
	}
	
	public int getId_user() {
		return id_user;
	}

	public void setId_user(int id_user) {
		this.id_user = id_user;
	}


	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel out, int flags) {
		out.writeInt(id_route);
		out.writeString(name_route);
		out.writeString(description);
		out.writeString(coordinates);
		out.writeString(characteristicPoints);
		out.writeInt(id_user);
		
	}

	public static final Parcelable.Creator<RouteInfo> CREATOR = new Parcelable.Creator<RouteInfo>() {
		public RouteInfo createFromParcel(Parcel in) {
			return new RouteInfo(in);
		}

		public RouteInfo[] newArray(int size) {
			return new RouteInfo[size];
		}
	};

}
